<!DOCTYPE html>
<html>
	<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="robots" content="noindex,nofollow,noarchive">

	<title>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
	//Core CSS - Include with every page
	echo $this->Html->css('bootstrap');
	echo $this->Html->css('font-awesome/css/font-awesome.css');
	echo $this->Html->css('plugins/dataTables/dataTables.bootstrap');
	//SB Admin CSS - Include with every page
	echo $this->Html->css('sb-admin');

	echo $this->fetch('meta');
	echo $this->fetch('css');
	?>
</head>
<body>
	<div id="wrapper">
		<nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="margin-bottom: 0">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="/admin/">Vay tiêu dùng Admin v1.0</a>
				<a class="navbar-brand" href="/" target="_blank">Visit site</a>
			</div>
			<!-- /.navbar-header -->
			<ul class="nav navbar-top-links navbar-right">
				<li><i class="fa fa-user fa-fw"></i>Admin:</li>
				<li>
					<a href="<?php echo $this->Html->url(array('controller' => 'member', 'action' => 'changePassword')) ?>"><i class="fa fa-gear fa-fw"></i> Thay đổi mật khẩu</a>
				</li>
				<li>
					<a href="<?php echo $this->Html->url(array('controller' => 'member', 'action' => 'logout')) ?>"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
				</li>
			</ul>
			<!-- /.navbar-top-links -->
			<div class="navbar-default navbar-static-side" role="navigation">
				<!-- SIDE -->
				<?php echo $this->element('side')?>
				<!-- /SIDE -->
			</div><!-- /.navbar-static-side -->

		</nav>
		<div id="page-wrapper">
			<?php echo $this->fetch('content'); ?>
		</div>
		<div class="navbar-default navbar-footer">
			<a href="#">Copyright: <?php echo date('Y');?></a> | <a href="<?php echo $this->Html->url(array('controller' => 'member', 'action' => 'logout')) ?>">Logout</a>
		</div>
	</div><!-- /#wrapper -->
	<script type="text/javascript">
		var WEB_ROOT = '<?php echo $this->webroot; ?>';
	</script>
	<?php
		//Core Scripts - Include with every page
		echo $this->Html->script('jquery-1.10.2');
		echo $this->Html->script('bootstrap.min');
		echo $this->Html->script('plugins/metisMenu/jquery.metisMenu');
		echo $this->Html->script('plugins/dataTables/jquery.dataTables');
		echo $this->Html->script('plugins/dataTables/dataTables.bootstrap');
		//ckeditor
		echo $this->Html->script('ckeditor/ckeditor', array('inline'=>false));
		echo $this->Html->script('ckfinder/ckfinder.js', array('inline'=>false));
		//SB Admin Scripts - Include with every page -->
		echo $this->Html->script('sb-admin');
		echo $this->fetch('script');
	?>
</body>
</html>

